import request from '@/utils/request'

export function login(data) {
  return request({
    url: '/user',
    method:'get',
    params:{data},
    headers: {
      'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8'
    }
  })
}
export function getInfo() {
  return request({
    url: '/userinfo',
    method: 'get',
    /*params: { token }*/
  })
}

export function logout() {
  return request({
    url: '/logout',
    method: 'post'
  })
}
